package com;

import com.lambda.TestMylitMap;

import cn.hutool.core.util.ReflectUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

public class TestReflectUtil {

	public static void main(String[] args) {
		MyMap map = new MyMap();
		ReflectUtil.invoke(map, "setCode1", "aaa");
		System.out.println(map);
	}
	
	@Data
	@Builder
	@NoArgsConstructor
	@AllArgsConstructor
	static class MyMap {
		private String code1;
		private String code2;
		private String code3;
		private Integer values;
	}
}
